# # 求100以内所有7的倍数之和，以及个数
# result = 0
# i = 1
# num = 0
# while i < 100 :
#     if i % 7 == 0 :
#         result += i
#         num += 1
#     i += 1
# print("result=" + str(result))
# print("*" * 50)
# print("个数是" + str(num))

result = 0
# i = 1
num = 0
# while i < 100 :
for i in range(7, 100, 7):
    # print(i)
    #     if i % 7 == 0 :
    result += i
    num += 1
#     i += 1
print("result=" + str(result))
print("*" * 50)
print("个数是" + str(num))
